package com.pactera.asmp.server.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.validation.constraints.Size;
import java.time.LocalDateTime;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class TaskExecDTO {
    private  Integer id;
    private Integer exeNumber;
    private Integer successNumber;
    private Integer failNumber;
    @Size(max = 500,message = "失败描述长度0-500")
    private String failReason;
    private Integer status;   // 0 等待执行，1 正在执行， 2 执行失败， 3.执行成功  4. 任务取消 5. 设备被占用，执行失败
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime execTime;
    private Integer completedJob;
    private String duid;
    private LocalDateTime exceEndTime;
}
